package org.grow.actor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "PurchaseItem")
public class PurchaseItem {
    @TableId(value = "itemId", type = IdType.AUTO)
    private Integer itemId;

    @TableField(value = "billFk")
    private String billFk;

    @TableField(value = "priority")
    private Integer priority;

    @TableField(value = "goodsCode")
    private String goodsCode;

    @TableField(value = "goodsName")
    private String goodsName;

    @TableField(value = "price")
    private BigDecimal price;

    @TableField(value = "quantity")
    private Integer quantity;

    public static final String COL_ITEMID = "itemId";

    public static final String COL_BILLFK = "billFk";

    public static final String COL_PRIORITY = "priority";

    public static final String COL_GOODSCODE = "goodsCode";

    public static final String COL_GOODSNAME = "goodsName";

    public static final String COL_PRICE = "price";

    public static final String COL_QUANTITY = "quantity";
}